/* 
使用格式:
    1.引入公用样式表
    2.引入当前样式表
    3.引入公用js模块
    4.具体功能

*/
import "animate.css";
// 1.引入公用样式表
require("../../assets/css/index.less");

// 2.引入当前样式表
require("./ad.less");

require("animate.css");
let dom = require("../../utils/dom.js");
function jump(ment, target) {
  dom.$(ment).addEventListener("click", function () {
    location.href = target + ".html";
  });
}
dom.ready(function () {
 let time = setInterval(() => {
    dom.$("#timer").textContent -= 1;
    if (dom.$("#timer").textContent == 0) {
      console.log(dom.$("#timer").textContent);
      clearInterval(time)
      location.href = "login.html";
    }
  }, 1000);

  jump("#jumppage", "login");
});
